package cn.asura.mapper;

import cn.asura.pojo.BlogType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Sakura
 * @description
 * @createTime 2020-09-18 23:19
 */
public interface BlogTypeMapper {
    List<BlogType> findAll(@Param("userId") int userId, @Param("title") String name,
                           @Param("startTime") String startTime, @Param("endTime") String endTime);

    int creat(BlogType blogType);

    BlogType findTheUserBlogTypeByTitle(@Param("title") String title, @Param("userId") int userId);

    int deleteById(int gid);

    BlogType findById(int id);

    int update(BlogType blogType);
}
